Integrand size = 15, antiderivative size = 97 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=-\frac {3 \cos (a-c+(b-d) x)}{8 (b-d)}+\frac {\cos (3 a-c+(3 b-d) x)}{8 (3 b-d)}-\frac {3 \cos (a+c+(b+d) x)}{8 (b+d)}+\frac {\cos (3 a+c+(3 b+d) x)}{8 (3 b+d)} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {4670, 2718} \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=-\frac {3 \cos (a+x (b-d)-c)}{8 (b-d)}+\frac {\cos (3 a+x (3 b-d)-c)}{8 (3 b-d)}-\frac {3 \cos (a+x (b+d)+c)}{8 (b+d)}+\frac {\cos (3 a+x (3 b+d)+c)}{8 (3 b+d)} \]
[In]
[Out]
Rule 2718
Rule 4670
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {3}{8} \sin (a-c+(b-d) x)-\frac {1}{8} \sin (3 a-c+(3 b-d) x)+\frac {3}{8} \sin (a+c+(b+d) x)-\frac {1}{8} \sin (3 a+c+(3 b+d) x)\right ) \, dx \\ & = -\left (\frac {1}{8} \int \sin (3 a-c+(3 b-d) x) \, dx\right )-\frac {1}{8} \int \sin (3 a+c+(3 b+d) x) \, dx+\frac {3}{8} \int \sin (a-c+(b-d) x) \, dx+\frac {3}{8} \int \sin (a+c+(b+d) x) \, dx \\ & = -\frac {3 \cos (a-c+(b-d) x)}{8 (b-d)}+\frac {\cos (3 a-c+(3 b-d) x)}{8 (3 b-d)}-\frac {3 \cos (a+c+(b+d) x)}{8 (b+d)}+\frac {\cos (3 a+c+(3 b+d) x)}{8 (3 b+d)} \\ \end{align*}
Time = 0.56 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.93 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=\frac {1}{8} \left (-\frac {3 \cos (a-c+b x-d x)}{b-d}+\frac {\cos (3 a-c+3 b x-d x)}{3 b-d}+\frac {\cos (3 a+c+3 b x+d x)}{3 b+d}-\frac {3 \cos (a+c+(b+d) x)}{b+d}\right ) \]
[In]
[Out]
Time = 0.72 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.93
method | result | size |
default | \(-\frac {3 \cos \left (a -c +\left (b -d \right ) x \right )}{8 \left (b -d \right )}+\frac {\cos \left (3 a -c +\left (3 b -d \right ) x \right )}{24 b -8 d}-\frac {3 \cos \left (a +c +\left (b +d \right ) x \right )}{8 \left (b +d \right )}+\frac {\cos \left (3 a +c +\left (3 b +d \right ) x \right )}{24 b +8 d}\) | \(90\) |
parallelrisch | \(\frac {-12 \tan \left (\frac {a}{2}+\frac {x b}{2}\right )^{6} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} b^{3}-24 b^{2} d \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) \tan \left (\frac {a}{2}+\frac {x b}{2}\right )^{5}+12 \left (\left (-3 b^{3}+b \,d^{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-b \,d^{2}\right ) \tan \left (\frac {a}{2}+\frac {x b}{2}\right )^{4}+16 \left (-4 b^{2} d +d^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) \tan \left (\frac {a}{2}+\frac {x b}{2}\right )^{3}+12 \left (-\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} b \,d^{2}-3 b^{3}+b \,d^{2}\right ) \tan \left (\frac {a}{2}+\frac {x b}{2}\right )^{2}-24 \tan \left (\frac {a}{2}+\frac {x b}{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) b^{2} d -12 b^{3}}{\left (b +d \right ) \left (1+\tan \left (\frac {a}{2}+\frac {x b}{2}\right )^{2}\right )^{3} \left (3 b +d \right ) \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right ) \left (3 b -d \right ) \left (b -d \right )}\) | \(260\) |
risch | \(-\frac {27 \cos \left (x b -d x +a -c \right ) b^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}-\frac {27 \cos \left (x b -d x +a -c \right ) b^{2} d}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}+\frac {3 \cos \left (x b -d x +a -c \right ) b \,d^{2}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}+\frac {3 \cos \left (x b -d x +a -c \right ) d^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}-\frac {27 \cos \left (x b +d x +a +c \right ) b^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}+\frac {27 \cos \left (x b +d x +a +c \right ) b^{2} d}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}+\frac {3 \cos \left (x b +d x +a +c \right ) b \,d^{2}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}-\frac {3 \cos \left (x b +d x +a +c \right ) d^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}+\frac {3 \cos \left (3 x b -d x +3 a -c \right ) b^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}+\frac {\cos \left (3 x b -d x +3 a -c \right ) b^{2} d}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}-\frac {3 \cos \left (3 x b -d x +3 a -c \right ) b \,d^{2}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}-\frac {\cos \left (3 x b -d x +3 a -c \right ) d^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (-b +d \right ) \left (-3 b +d \right )}+\frac {3 \cos \left (3 x b +d x +3 a +c \right ) b^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}-\frac {\cos \left (3 x b +d x +3 a +c \right ) b^{2} d}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}-\frac {3 \cos \left (3 x b +d x +3 a +c \right ) b \,d^{2}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}+\frac {\cos \left (3 x b +d x +3 a +c \right ) d^{3}}{8 \left (b +d \right ) \left (3 b +d \right ) \left (b -d \right ) \left (3 b -d \right )}\) | \(730\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.20 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=-\frac {{\left (7 \, b^{2} d - d^{3} - {\left (b^{2} d - d^{3}\right )} \cos \left (b x + a\right )^{2}\right )} \sin \left (b x + a\right ) \sin \left (d x + c\right ) - 3 \, {\left ({\left (b^{3} - b d^{2}\right )} \cos \left (b x + a\right )^{3} - {\left (3 \, b^{3} - b d^{2}\right )} \cos \left (b x + a\right )\right )} \cos \left (d x + c\right )}{9 \, b^{4} - 10 \, b^{2} d^{2} + d^{4}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 932 vs. \(2 (76) = 152\).
Time = 2.04 (sec) , antiderivative size = 932, normalized size of antiderivative = 9.61 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=\text {Too large to display} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 785 vs. \(2 (89) = 178\).
Time = 0.28 (sec) , antiderivative size = 785, normalized size of antiderivative = 8.09 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=\text {Too large to display} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 89, normalized size of antiderivative = 0.92 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=\frac {\cos \left (3 \, b x + d x + 3 \, a + c\right )}{8 \, {\left (3 \, b + d\right )}} + \frac {\cos \left (3 \, b x - d x + 3 \, a - c\right )}{8 \, {\left (3 \, b - d\right )}} - \frac {3 \, \cos \left (b x + d x + a + c\right )}{8 \, {\left (b + d\right )}} - \frac {3 \, \cos \left (b x - d x + a - c\right )}{8 \, {\left (b - d\right )}} \]
[In]
[Out]
Time = 21.98 (sec) , antiderivative size = 471, normalized size of antiderivative = 4.86 \[ \int \cos (c+d x) \sin ^3(a+b x) \, dx=-{\mathrm {e}}^{a\,3{}\mathrm {i}-c\,1{}\mathrm {i}+b\,x\,3{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\left (\frac {-3\,b^3-b^2\,d+3\,b\,d^2+d^3}{144\,b^4-160\,b^2\,d^2+16\,d^4}+\frac {{\mathrm {e}}^{-a\,6{}\mathrm {i}-b\,x\,6{}\mathrm {i}}\,\left (-3\,b^3+b^2\,d+3\,b\,d^2-d^3\right )}{144\,b^4-160\,b^2\,d^2+16\,d^4}-\frac {{\mathrm {e}}^{-a\,2{}\mathrm {i}-b\,x\,2{}\mathrm {i}}\,\left (-27\,b^3-27\,b^2\,d+3\,b\,d^2+3\,d^3\right )}{144\,b^4-160\,b^2\,d^2+16\,d^4}-\frac {{\mathrm {e}}^{-a\,4{}\mathrm {i}-b\,x\,4{}\mathrm {i}}\,\left (-27\,b^3+27\,b^2\,d+3\,b\,d^2-3\,d^3\right )}{144\,b^4-160\,b^2\,d^2+16\,d^4}\right )-{\mathrm {e}}^{a\,3{}\mathrm {i}+c\,1{}\mathrm {i}+b\,x\,3{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\left (\frac {-3\,b^3+b^2\,d+3\,b\,d^2-d^3}{144\,b^4-160\,b^2\,d^2+16\,d^4}+\frac {{\mathrm {e}}^{-a\,6{}\mathrm {i}-b\,x\,6{}\mathrm {i}}\,\left (-3\,b^3-b^2\,d+3\,b\,d^2+d^3\right )}{144\,b^4-160\,b^2\,d^2+16\,d^4}-\frac {{\mathrm {e}}^{-a\,2{}\mathrm {i}-b\,x\,2{}\mathrm {i}}\,\left (-27\,b^3+27\,b^2\,d+3\,b\,d^2-3\,d^3\right )}{144\,b^4-160\,b^2\,d^2+16\,d^4}-\frac {{\mathrm {e}}^{-a\,4{}\mathrm {i}-b\,x\,4{}\mathrm {i}}\,\left (-27\,b^3-27\,b^2\,d+3\,b\,d^2+3\,d^3\right )}{144\,b^4-160\,b^2\,d^2+16\,d^4}\right ) \]
[In]
[Out]